package com.zuoye;

public class TestPhone {
    public static void main(String[] args) {
        Phone pho = new Phone();
      pho.setBrand("小米");
      pho.setPrice(3998);
      pho.setColor("黑色");
      pho.call();
      pho.sendMessage();
    }

}
class Phone {
    String brand ;
    int price;
    String  color;
    public Phone(){
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }
    public Phone(String brand,int price,String color){
        this.brand=brand;
        this.price=price;
        this.color=color;

    }

    public void setColor(String color) {
        this.color = color;
    }

    public void call(){
        System.out.println("正在使用价格为"+price+"元"+color+"的"+brand+"手机打电话....");
    }

    public void sendMessage(){
        System.out.println("正在使用价格为"+price+"元"+color+"的"+brand+"手机发短信....");
    }
}
